package com.wf.smartcomm.server.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.google.gson.annotations.Expose;

/** 
 * @author 38884306@qq.com  
 * @version ����ʱ�䣺2015-5-18 ����7:08:50 
 * 
 */
@Entity
@Table(name = "t_feedback")
public class Feedback {
	@Expose
	@Id
	@Column(length = 32)
	private String objectId;
	
	@ManyToOne
	@JoinColumn(name = "complainId")
	private Complain complain;
	
	@ManyToOne
	@JoinColumn(name = "praiseId")
	private Praise praise;
	
	@Expose
	@Column(length = 3200)
	private String content;
	
	@ManyToOne
	@JoinColumn(name = "repairId")
	private Repair repair;
	
	@Expose
	@ManyToOne
	@JoinColumn(name = "uid")
	private User user;
	
	@Column(length = 20)
	private String createdAt;
	
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getObjectId() {
		return objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	public Complain getComplain() {
		return complain;
	}

	public void setComplain(Complain complain) {
		this.complain = complain;
	}

	public Praise getPraise() {
		return praise;
	}

	public void setPraise(Praise praise) {
		this.praise = praise;
	}

	public Repair getRepair() {
		return repair;
	}

	public void setRepair(Repair repair) {
		this.repair = repair;
	}

	public String getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(String createdAt) {
		this.createdAt = createdAt;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
